package com.wangshouyu.mp.template;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 王守钰
 * @date 2020年12月19日 06:54
 * @description 模板数据
 */
public class TemplateData implements Serializable {

    /**
     * 模板数据
     */
    private String value;

    /**
     * 模板内容字体颜色
     */
    private String color;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TemplateData that = (TemplateData) o;
        return Objects.equals(value, that.value) && Objects.equals(color, that.color);
    }

    @Override
    public int hashCode() {
        return Objects.hash(value, color);
    }

    @Override
    public String toString() {
        return "TemplateData{" +
                "value='" + value + '\'' +
                ", color='" + color + '\'' +
                '}';
    }

    public TemplateData(String value, String color) {
        this.value = value;
        this.color = color;
    }

    public TemplateData(String value) {
        this.value = value;
    }

    public TemplateData() {
    }
}
